﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Diablo3.Engine.Property
{
    /// <summary>
    /// 寒冰抗性
    /// </summary>
    public class ColdResistance : ItemsProperty, IAffecteColdResistance
    {
        public ColdResistance() { }

        public ColdResistance(Double value)
        {
            Value = value;
        }

        /// <summary>
        /// 寒冰抗性值
        /// </summary>
        public Double Value { get; set; }

        #region IAffecteColdResistance 成员

        double IAffecteColdResistance.Affecte(double source)
        {
            return Value + source;
        }

        #endregion

        public override string Des
        {
            get { return String.Format("+{0} 寒冰抗性", Value); }
        }
    }
}
